package com.travel.server.manager.dto.response.project.data;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @Author: LiZhenhui
 * @Date: 2018/11/29 10:33
 * @Desc:
 */
@Data
public class QueryProjectProfitListResponse {

    private String today = "0";

    private String yesterday = "0";

    @JSONField(name = "project_profit_list")
    private List<ProjectProfitItem> projectProfitList;

    @JSONField(name = "profit_list")
    private List<ProfitItem> profitList;

    @JSONField(name = "total_num")
    private Integer totalNum;

    @Data
    public static class ProjectProfitItem{

        private String project;

        @JSONField(name = "travel_date", format = "yyyy-MM-dd")
        private Date travelDate;

        private String cost;

        private String order;

        private String refund;

        private String profit;
    }

    @Data
    public static class ProfitItem{
        @JSONField(format = "yyyy-MM-dd")
        private Date date;

        @JSONField(name = "week_date", format = "yyyy-MM-dd")
        private Date weekDate;

        @JSONField(format = "yyyy-MM-dd")
        private String profit;

        private String add;
    }
}
